﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AccountAdmin/AdminMaster.master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="PRJ_LDW_Eutoliso.AccountAdmin.Endereco.Estado.Edit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headTile" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="headScript" runat="server">

    

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body_pre_central" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body_central_first" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="body_central" runat="server">

     <!-- Start Box -->
    <div class="boxes-full">

        <div class="boxes-padding fullpadding">

            <!-- Start None Split Section -->
            <div class="splitnone">

                <div id="portfolio-container">


                    <!-- Start 4 column portfolio -->
                    <div class="element web">

                        <div class="col1">
                            <div class="wrapper_01">


                                <div class="wrapper_01">
                                   <h3> <li class="under_02"><a href="/AccountAdmin/Home.aspx" title="" class="active">Página Inicial</a></li></h3>
                                     <h3> <li class="under_02"><a href="#">Anúncios</a></li> </h3>
                                      <h3><li class="under_02"><a href="#">Meus Dados</a></li> </h3>
                                      <h3><li class="under_02"><a href="/AccountAdmin/Endereco/Cidade/Home.aspx" title="" class="active">Cidades</a></li> </h3>
                                      <h3><li class="under_02"><a href="/AccountAdmin/Endereco/Bairro/Home.aspx" title="" class="active">Bairros</a></li> </h3>
                                    <%--<li class="under_02"><a href="#">Sair</a></li>--%>
                                </div>

                            </div>
                        </div>

                    </div>

                    <div class="element graphic">

                        <br />


                        <asp:EntityDataSource ID="dsEstado" runat="server" ConnectionString="name=tolisoEntities" DefaultContainerName="tolisoEntities" EnableDelete="True" EnableFlattening="False" EntitySetName="estado" EnableInsert="True" EnableUpdate="True">
                        </asp:EntityDataSource>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:eutolisodbConnectionString %>" SelectCommand="SELECT Nome, Regiao, Uf FROM estado WHERE (Id = @ID)">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="ID" QueryStringField="ID" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <br />

                        <br />

                    </div>

                    <div class="element logo">
                      <h2>  Editar Estado </h2>

                         <br />
                        <br />
                        <table>
                            <tr>
                                <td>
                                    <h3><asp:Label ID="Label2" runat="server" Text="Nome" /></h3>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNome" runat="server" CssClass="contacttextform"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <h3> <asp:Label ID="Label3" runat="server" Text="Região" /> </h3>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlRegiao" CssClass="contacttextform" runat="server" Height="32px" Width="157px" AppendDataBoundItems="True">
                                        <asp:ListItem Value="0">Selecione</asp:ListItem>
                                        <asp:ListItem>Centro-Oeste</asp:ListItem>
                                        <asp:ListItem>Nordeste</asp:ListItem>
                                        <asp:ListItem>Norte</asp:ListItem>
                                        <asp:ListItem>Sudeste</asp:ListItem>
                                        <asp:ListItem>Sul</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=eutolisodbEntities1" DefaultContainerName="eutolisodbEntities1" EnableFlattening="False" EntitySetName="estado" Select="it.[Nome], it.[Regiao], it.[Uf]">
                                    </asp:EntityDataSource>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <h3><asp:Label ID="Label4" runat="server" Text="UF" /> </h3>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtUF" CssClass="contacttextform" runat="server" Width="81px"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <br />
                                    <asp:LinkButton ID="btnInserir" runat="server" Text="Editar" OnClick="btnInserir_Click" CssClass="smallsmoothrectange orangebutton"/>
                                </td>
                                 <td>
                                     <br />
                                    <asp:LinkButton ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" CssClass="smallsmoothrectange orangebutton"/>
                                </td>

                            </tr>

                        </table>

                        <br /><br />

                        <a href="Home.aspx" title="Inserir Novo" class="smallsmoothrectange orangebutton">Mostrar Todos</a>


                        <%--    <table>
                     

                         <br /> <br /> <br />

                         <table>
                            Atualizar Estado
                            <tr>
                                <td><asp:Label ID="Label1" runat="server" Text="Nome" /></td>
                                <td><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="Label5" runat="server" Text="Região" /></td>
                                <td><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>                                                              

                            </tr>
                            <tr>
                                <td><asp:Label ID="Label6" runat="server" Text="UF" /></td>
                                <td><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox></td>
                            </tr>

                             <tr>
                                <td><asp:Button ID="btnAtualizar" runat="server" Text="Atualizar" OnClick="btnAtualizar_Click"/></td>
                                
                            </tr>

                        </table>--%>
                    </div>

                    <!-- End 4 column portfolio -->

                </div>

            </div>
            <!-- End None Split Section -->

        </div>

    </div>
    <!-- End Box -->


</asp:Content>
